<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="<?php echo $_BASE_DIR?>css_v1/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $_BASE_DIR?>css_v1/select.css" rel="stylesheet" type="text/css" />
    <!-- tips -->
    <link type="text/css" href="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.tooltip.css" rel="stylesheet">
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.position.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>jqmobile/jquery.ui.tooltip.js"></script>
    <!--<script type="text/javascript" src="<?php /*echo $_BASE_DIR*/?>js_v1/jquery.js"></script>-->
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.idTabs.min.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/select-ui.min.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>javascripts/commond.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>baidu_editor/ueditor.config.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.datetimepicker.js"></script>
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>js_v1/jquery.DatePicker.js"></script>
<!-- 编辑器源码文件 -->
    <script type="text/javascript" src="<?php echo $_BASE_DIR?>baidu_editor/ueditor.all.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="<?php echo $_BASE_DIR?>baidu_editor/lang/zh-cn/zh-cn.js"></script>
<link href="<?php echo $_BASE_DIR?>uploadify/css/uploadify.css" rel="stylesheet" type="text/css" />

<style type="text/css">
#header {
  height: 85px
}

#leftside,#container,#splitBar,#splitBarProxy {
  top: 90px
}
.forminfo li label {
    width: 150px;

}
.detail_box{
	position: relative;
	width: 800px;
	padding: 10px 50px;
	display: flex;
	flex-direction: column;
	
}
.detail_box .detail_tab{
	border: 1px solid #515151;
	display: flex;
	justify-content: space-around;
	margin:0px 0px -1px -1px;
}
.detail_tab .left{
	width: 160px;
	font-size: 20px;
}
.detail_tab .right{
	width: 320px;
	font-size: 20px;
}
.goods_box{
	position: relative;
	width: 600px;
	padding: 10px 50px;
	display: flex;
	flex-direction: column;
}
.goods_box .goods_tab{

	display: flex;
	justify-content: space-around;
	margin: 5px;
	/*border: 1px solid #515151;
	margin:0px 0px -1px -1px;*/
}
.goods_tab .left{
	width: 80px;
	font-size: 20px;
}
.goods_tab .left img{
	width: 80px;
	height: 80px;
}
.goods_tab .right{
	width: 320px;
}
.goods_tab .right p{
	font-size: 20px;
}
</style>
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
    width : 345       
  });
  $(".select2").uedSelect({
    width : 167  
  });
  $(".select3").uedSelect({
    width : 110
  });

    //启动tip功能
    $( document ).tooltip({
        position: { my: "left+15 center", at: "right center" }
    });
});
</script>
<script src="<?php echo $_BASE_DIR?>javascripts/jquery.ocupload.min.js"
  type="text/javascript"></script>


<script type="text/javascript">
function ajaxpost(form)
{
  var data = $(form).serialize();
  $.post(form.action, data,function(result){
    result =  eval("("+result+")");
    alert(result.message);
    if( result.forwardUrl !== 'null' && result.forwardUrl !== null )
    {
      window.location.href = result.forwardUrl;
    }
    });
  return false;
}
</script>

</head>

<body>

  <div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="<?php echo url("leftmenu/bottom")?>">首页</a></li>
    <li><a href="/">订单详情</a></li>
    </ul>
    </div>
    <div class="formbody">
    <div id="usual1" class="usual">
    <div id="tab1" class="tabson">
    
    <b>订单信息</b>
    <div class="detail_box">
    	<div class="detail_tab">
	    	<div class="left">
	    		订单编号
	    	</div>
	    	<div class="right">
	    		<?php echo $info->ordersn?>
	    	</div>
    	</div>

    	<div class="detail_tab">
	    	<div class="left">
	    		订单状态
	    	</div>
	    	<div class="right">
	    		<?php echo shoporder::getstatusname($info->status)?>
	    	</div>
    	</div>

    	<div class="detail_tab">
	    	<div class="left">
	    		订单金额
	    	</div>
	    	<div class="right">
	    		<?php echo $info->pay_fee?>
	    	</div>
    	</div>

    	<div class="detail_tab">
	    	<div class="left">
	    		商品金额
	    	</div>
	    	<div class="right">
	    		<?php echo $info->total_fee?>
	    	</div>
    	</div>

    	<div class="detail_tab">
	    	<div class="left">
	    		运费金额
	    	</div>
	    	<div class="right">
	    		<?php echo $info->ship_fee?>
	    	</div>
    	</div>

    	<div class="detail_tab">
	    	<div class="left">
	    		下单时间
	    	</div>
	    	<div class="right">
	    		<?php echo date("Y-m-d H:i:s",$info->created)?>
	    	</div>
    	</div>

    </div>
    <b>商品信息</b>

    <div class="detail_box">
    	<div class="detail_tab">
	    	<div class="left">
	    		收货人
	    	</div>
	    	<div class="right">
	    		<?php echo $address->contact_name?>
	    	</div>
    	</div>

    	<div class="detail_tab">
	    	<div class="left">
	    		电话
	    	</div>
	    	<div class="right">
	    		<?php echo $address->tel?>
	    	</div>
    	</div>

    	<div class="detail_tab">
	    	<div class="left">
	    		详细地址
	    	</div>
	    	<div class="right">
	    		<?php echo $info->address_detail?>
	    	</div>
    	</div>

    </div>

    <b>商品信息</b>
    	<div class="goods_box">
    	<?php 

    		foreach ($ordergoods as $value) {
    		?>
	    		<div class="goods_tab">
			    	<div class="left">
			    		<img src="<?php echo $value['goods_item']['product_thumb'] ?>">
			    	</div>
			    	<div class="right">
			    		<p><?php echo $value['goods_item']['name']?></p>
			    		<p><?php echo $value['price']?>*<?php echo $value['total']?></p>
			    	</div>
		    	</div>

    	<?php
    		}
    	?>

    	</div>



    <form action="<?php echo url("shoporder/sendship")?>" method="post" onsubmit="return ajaxpost(this)">
    	<ul class="forminfo">
    	<li>
        <label>快递公司</label>
        <div class="vocation">
          <select name="receipt_com" class="select3" title="快递公司">
          <option value="ZTO" <?php echo $info->receipt_com == 'ZTO' ? 'selected':''?>>中通快递</option>
          <option value="STO" <?php echo $info->receipt_com == 'STO' ? 'selected':''?>>申通快递</option>
          <option value="YTO" <?php echo $info->receipt_com == 'YTO' ? 'selected':''?>>圆通快递</option>
          <option value="YUNDA" <?php echo $info->receipt_com == 'YUNDA' ? 'selected':''?>>韵达快递</option>
          <option value="SFEXPRESS" <?php echo $info->receipt_com == 'SFEXPRESS' ? 'selected':''?>>顺丰</option>
          <option value="TTKDEX" <?php echo $info->receipt_com == 'TTKDEX' ? 'selected':''?>>天天快递</option>
          <option value="HTKY" <?php echo $info->receipt_com == 'HTKY' ? 'selected':''?>>百世快递</option>
          <option value="EMS" <?php echo $info->receipt_com == 'EMS' ? 'selected':''?>>EMS</option>
          <pption value="" <?php echo $info->receipt_com == '' ? 'selected':''?>>其它</option>
          </select>
          </div>
        </li>

    	<li>
        <label>快递单号</label>
        <input type="text" title="快递单号" class="dfinput" style="width:200px;" value="<?php echo $info->receipt_number ?>" name="receipt_number" />
        </li>
        <input type="hidden" value="<?php echo $info->id ?>" name="id" />


        <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="提交"/></li>
        </ul>
  </form>

</div></div></div></body>
    
    </html>
    
    
